package com.lzc.springboot_jsp_shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ShiroController {

    /**
     * 跳转到首页
     *
     * @return
     */
    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    /**
     * 跳转到登录页面
     *
     * @return
     */
    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    /**
     * 跳转到注册页面
     *
     * @return
     */
    @RequestMapping("/toregister")
    public String toregister() {
        return "register";
    }

    /**
     * 跳转到订单页面
     *
     * @return
     */
    @RequestMapping("/toOrder")
    public String toOrder() {
        return "order";
    }
}
